﻿@{
    ViewBag.Title = "AlterWindowSelectOrder";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    $(function () {
        gridPartList();
    });
    function gridPartList() {
        var $gridList = $("#gridPartList");
        $gridList.jqGrid({
            url: "",
            height: 200,
            colModel: [
                        { label: '零件编号', name: 'F_Location', width: 100, align: 'left' },
                        { label: '零件名称', name: 'F_Id', width: 160, align: 'left' },
                        { label: "材料牌号", name: "F_ModuleId", width: 120, align: 'left' },
                        { label: '材料规格', name: 'F_Split', width: 100, align: 'left' },
                        { label: '标准编号', name: 'F_Num', width: 100, align: 'left' },
                        { label: '特殊要求', name: 'F_Num', width: 100, align: 'left' }
            ],
            sortname: 'F_DepartmentId asc,F_CreatorTime desc',
            viewrecords: true
        });
    }

    function GetDataValue() {
       return $("#gridPartList").jqGridRowValue();
    }
</script>
<div>
    <table class="form">
        <tr>
            <th class="formTitle">请输入零件编号</th>
            <td class="formValue">
                <input id="F_ItemCode" name="F_ItemCode" type="text" class="form-control required" placeholder="请输入编号" />
            </td>
            <td>
                <div class="btn-group" style="margin-right:20px;">
                    <a id="" class="btn btn-primary center-block" onclick=" GetOrderData();"><span class="glyphicon glyphicon-ok"></span> 查询</a>
                </div>
            </td>
        </tr>
    </table>
</div>
<div class="gridPanel"> 
    <table id="gridPartList"></table> 
</div>